package com.emmmya.ocs.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.emmmya.harinCheck.annotation.Check;
import com.emmmya.ocs.common.base.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Exrick
 */
@Data
@Entity
@Table(name = "h_department_header")
@TableName("h_department_header")
// 部门负责人
public class DepartmentHeader extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Check(name = "关联部门id")
    private Long departmentId;

    @Check(name = "关联部门负责人")
    private Long userId;

    @Check(name = "负责人类型 默认0主要 1副职")
    private Integer type = 0;
}